package cn.esale.action;

import java.util.List;

import cn.esale.entity.CusCustomer;
import cn.esale.service.CustomerService;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class CustomerAction extends ActionSupport {

	private List<CusCustomer> customerList;
	private CustomerService customerService;

	
	public List<CusCustomer> getCustomerList() {
		return customerList;
	}

	public void setCustomerList(List<CusCustomer> customerList) {
		this.customerList = customerList;
	}

	public CustomerService getCustomerService() {
		return customerService;
	}

	public void setCustomerService(CustomerService customerService) {
		this.customerService = customerService;
	}


	public String list(){
		customerList=this.customerService.getAll();
		return Action.SUCCESS;
	}
}
